package com.hdax.dm.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hdax.dm.common.exception.DmException;
import com.hdax.dm.entity.user.User;
import com.hdax.dm.user.dto.PersoninfoDto;
import com.hdax.dm.utils.CommonResponse;

import java.util.Map;

public interface UserLoginService extends IService<User> {

    /**
     * 获取验证码
     * @param params
     * @return
     * @throws Exception
     */
    CommonResponse msg(Map<String, String> params) throws DmException;

    /**
     * 短信验证码登录
     * @param params
     * @return
     * @throws DmException
     */
    CommonResponse Smslogin(Map<String, String> params) throws DmException;

    /**
     * 账号密码登录
     * @param params
     * @return
     * @throws DmException
     */
    CommonResponse Userlogin(Map<String, String> params) throws DmException;

    PersoninfoDto personinfo(Long userId);
}
